//
//  CYViewController.m
//  CYBaseKit
//
//  Created by 122674287@qq.com on 07/28/2022.
//  Copyright (c) 2022 122674287@qq.com. All rights reserved.
//

#import "CYViewController.h"

#import "CYBaseKit.h"
#import "CYOneViewController.h"
#import "CYListViewController.h"

@interface CYViewController ()

@end

@implementation CYViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.navigationTitle = @"CYViewController";


#ifdef CY_BASE_KIT_DEBUG
    NSLog(@"custom Debug");
#else
    NSLog(@"custom Release");
#endif
    
    
#ifdef DEBUG
    NSLog(@"Debug");
#else
    NSLog(@"Release");
#endif
	// Do any additional setup after loading the view, typically from a nib.

    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(100, 100, 100, 100);
    button.backgroundColor = [UIColor orangeColor];
    [button addTarget:self action:@selector(onBtnTap:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
}

- (void)onBtnTap:(UIButton *)sender {
    CYListViewController *two = [[CYListViewController alloc] init];

//    CYOneViewController *one = [[CYOneViewController alloc] init];
    [self.navigationController pushViewController:two animated:YES];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
